@using Omu.Awesome.Core
@using Omu.Awesome.Mvc.Helpers
@using Rail.Net.Core.Model
@model IPageable<Distance>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="dataTable">
    <thead>
        <tr>
            <th></th>
            <th>
                TispTisp
            </th>
            <th>
                Oebb
            </th>
            <th>
                Db
            </th>
            <th>
                Sbb
            </th>
            <th>
                P10
            </th>
            <th>
                P20
            </th>
            <th>
                P30
            </th>
            <th>
                P31
            </th>
            <th>
                P40
            </th>
            <th>
                P41
            </th>
            <th>
                P42
            </th>
            <th>
                P43
            </th>
            <th>
                P50
            </th>
            <th>
                P51
            </th>
            <th>
                P52
            </th>
            <th>
                P53
            </th>
            <th>
                P60
            </th>
            <th>
                P80
            </th>
            <th>
                Mav
            </th>
            <th>
                P81
            </th>
            <th>
                Station1
            </th>
            <th>
                Station2
            </th>
        </tr>
    </thead>
    <tbody>
    @foreach (var item in Model.Page) {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
                @Html.ActionLink("Details", "Details", new { id=item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id=item.Id })
            </td>
            <td>
			    @item.TispTisp
            </td>
            <td>
			    @item.Oebb
            </td>
            <td>
			    @item.Db
            </td>
            <td>
			    @item.Sbb
            </td>
            <td>
			    @item.P10
            </td>
            <td>
			    @item.P20
            </td>
            <td>
			    @item.P30
            </td>
            <td>
			    @item.P31
            </td>
            <td>
			    @item.P40
            </td>
            <td>
			    @item.P41
            </td>
            <td>
			    @item.P42
            </td>
            <td>
			    @item.P43
            </td>
            <td>
			    @item.P50
            </td>
            <td>
			    @item.P51
            </td>
            <td>
			    @item.P52
            </td>
            <td>
			    @item.P53
            </td>
            <td>
			    @item.P60
            </td>
            <td>
			    @item.P80
            </td>
            <td>
			    @item.Mav
            </td>
            <td>
			    @item.P81
            </td>
            <td>
			    @(item.Station1 == null ? "None" : item.Station1.Eva)
            </td>
            <td>
			    @(item.Station2 == null ? "None" : item.Station2.Eva)
            </td>
        </tr>
    }
</tbody>
</table>

@Html.Pagination()

